package com.howie.gulimall.search.vo;

import com.howie.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @description: 检索返回数据vo
 * @author: laizhenghua
 * @date: 2021/2/20 20:53
 */
@Data
public class SearchResult {
    /**
     * 查询到的商品集合
     */
    private List<SkuEsModel> products;
    /**
     * 当前页码
     */
    private Integer pageNumber;
    /**
     * 总记录数
     */
    private Long total;
    /**
     * 总页码
     */
    private Integer totalPages;
    /**
     * 导航页码
     */
    private List<Integer> pageNavs;
    /**
     * 当前查询到的结果，所有涉及到的品牌
     */
    private List<BrandVo> brandVos;
    /**
     * 当前查询到的结果，所有涉及到的所有属性
     */
    private List<AttrVo> attrVos;

    /**
     * 当前查询到的结果，所有涉及到分类属性
     */
    private List<CatalogVo> catalogVos;

    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    /**
     * 面包屑导航数据
     */
    private List<navVo> navs;
    @Data
    public static class navVo {
        private String navName;
        private String navValue;
        private String link;
    }
}
